package com.iknow.util.enums;

import android.graphics.Typeface;

public enum TypefaceEnum
{
  public Typeface face;
  public int id = -1;
  public String title = null;

  static
  {
    TypefaceEnum[] arrayOfTypefaceEnum = new TypefaceEnum[3];
    arrayOfTypefaceEnum[0] = DEFAULT;
    arrayOfTypefaceEnum[1] = MONOSPACE;
    arrayOfTypefaceEnum[2] = SERIF;
    ENUM$VALUES = arrayOfTypefaceEnum;
  }

  public static TypefaceEnum getEnum(int paramInt)
  {
    TypefaceEnum localTypefaceEnum;
    if (DEFAULT.id == paramInt)
      localTypefaceEnum = DEFAULT;
    while (true)
    {
      while (true)
      {
        while (true)
        {
          return localTypefaceEnum;
          if (MONOSPACE.id != paramInt)
            break;
          localTypefaceEnum = MONOSPACE;
        }
        if (SERIF.id != paramInt)
          break;
        localTypefaceEnum = SERIF;
      }
      localTypefaceEnum = DEFAULT;
    }
  }

  public static int getEnumIndexById(int paramInt)
  {
    TypefaceEnum[] arrayOfTypefaceEnum = values();
    int i = 0;
    while (true)
    {
      int j;
      if (i >= arrayOfTypefaceEnum.length)
        j = 0;
      while (true)
      {
        return j;
        if (arrayOfTypefaceEnum[i].id != paramInt)
          break;
        j = i;
      }
      ++i;
    }
  }
}